<template>
  <div class="wrap">
    <c-button type="primary" @click="clickHandle">
      <slot />
    </c-button>
    <input-with-dialog
      ref="refDialog"
      v-bind="$attrs"
      v-on="$listeners"
    />
  </div>
</template>
<script>
export default {
  name: 'CSelectDialog',
  props: {
  },
  data() {
    return {
    }
  },
  methods: {
    clickHandle() {
      this.$refs.refDialog.dialogShow = true
      this.$nextTick(() => {
        this.$refs.refDialog.openDialog()
      })
    }
  }
}
</script>
<style lang="scss" scoped>
.wrap{
  display: inline-block;
  /deep/ .input-with-search{
    display: none;
  }
}
</style>
